import request from '@/utils/request'
import qs from 'qs'

// /pyq/page
export const pyqPage = params => {
  return request({
    url: '/pyq/page?' + qs.stringify(params),
    method: 'POST'
  })
}

//  新增 & 修改 /pyq/save
export const savePyq = data => {
  return request({
    url: '/pyq/save',
    method: 'POST',
    data
  })
}

// 删除 /pyq/delete
export const deletePyq = params => {
  return request({
    url: '/pyq/delete?' + qs.stringify(params),
    method: 'POST'
  })
}

// 审核 /pyq/audit
export const auditPyq = params => {
  return request({
    url: '/pyq/audit?' + qs.stringify(params),
    method: 'POST'
  })
}
